package main

import (
	"bytes"
	"fmt"
	"io"
	"regexp"
)

func main() {
	var r io.RuneReader

	r = bytes.NewBufferString("seafood")

	matched, err := regexp.MatchReader(`foo.*`, r)
	fmt.Println(matched, err)
	//true <nil>
}
